<%@ page language="java" import="java.util.*, model.*" pageEncoding="ISO-8859-1"%>
<%@page import="bean.PollUser"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String title="Home";

ArrayList al = new ArrayList();
	al = PCmasterImpl.showPollMaster();
	
String pmusername = request.getParameter("id");
String pmpassword ="";
String pmemail ="";
String pmfn="";
String pmln="";



for(int i=0;i<al.size(); i++){
	PollUser pb = (PollUser)al.get(i);
	if(pb.getUsername().equals(pmusername)){
		pmusername=pb.getUsername();
		pmpassword=pb.getPassword();
		pmemail=pb.getEmail();
		pmfn=pb.getFirstname();
		pmln=pb.getLastname();
		
		
	}
}
%>
	
	
	<div id="Information">
	<h1 >Username: <%= pmusername%></h1>
	
	
	<p>Password: <%= pmpassword%></p>
	<p>Email: <%= pmemail%></p>
	<p>Firstname: <%= pmfn%></p>
	<p>Lastname: <%= pmln%></p>
	
	
	
	<hr />
	<h1>Modify</h1>
	
	
	<form id="aa" name="aa" action="updateuser.jsp"  method="post" onsubmit= "return vis()">
			<div id="ctrlHolder" >
		      <input type = "hidden" name = "sid" id = "sid"  value="<%=%>"/>
				
			</div>
				</br>
			<div class="ctrlHolder">
		      <label><strong>Question: </strong></label>
		      <input type = "text" name = "squestion" id = "squestion" class="textInput" value="<%=%>"/>
				
			</div>
				</br>
		<div class="ctrlHolder">
		      <label><strong>Answer: </strong></label>
		      <input type = "text" name = "sanswer" id = "sanswer" class="textInput" value="<%=%>"/>
				
			</div>
				</br>
				
	
	
	
	
	<div class="ctrlHolder">
		      <label><strong>Demographic: </strong></label>
		      <ul class="blockLabels" >
					<li><label for="demo-true"><input type="radio" id="sdemo"  name="sdemo" value="true" checked=true/> True</label></li>
					<li><label for="demo-false"><input type="radio" id="sdemo"  name="sdemo" value="false"/> False</label></li>
				</ul>
		      
				
			</div>
				</br>
	
	
	
	
	<input type='submit' value='Modify'  ></input>
	</form>
	 
	